﻿using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KDS.Mes.Mes.PlanModes
{
    /// <summary>
    /// 计划模式信息
    /// </summary>
    [Table("T_PlanMode")]
    public class PlanMode : FullAuditedEntity
    {
        /// <summary>
        /// 计划模式名称
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string PlanModeName { get; set; }

        /// <summary>
        /// 计划模式代码
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string PlanModeCode { get; set; }

        /// <summary>
        /// 默认
        /// </summary>
        public bool IsDefault { get; set; }

        public PlanMode(string planModeName, string planModeCode)
        {
            PlanModeName = planModeName;
            PlanModeCode = planModeCode;

        }

        public PlanMode()
        {

        }
    }
}
